package com.builder;

public class Director {

    public static Computer build(ComputerBuilder computerBuilder) {
        // 指挥制造过程（又称装配过程）,此过程是专门由指挥者来完成，进行统一装配，容易形成规范
        computerBuilder.setCpu();
        computerBuilder.setGpu();
        computerBuilder.setHard();
        return computerBuilder.build();
    }
}
